package day02;

public class DoubleDemo {
    public static void main(String[] args) {
        //4个字节
//        double a = 3.14;
//        float b = 3.14F;
//
//         double c = 3.0,d =2.9;
//        System.out.println(c-d);//0.100000...9,有误差

        double k=10.0, h=3.0,g,x;

        System.out.println(k/h);
        g =k/h;
        x = g*3;
        System.out.println(x);
        System.out.println(k/h*3);


    }
}
